package com.abner.springcloudprovideruser.config;

import com.netflix.discovery.DiscoveryClient;
import org.springframework.context.annotation.Bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Abner.Jiang
 * @Description:
 * @Date: Created on 2019/12/12 14:39
 * @ProjectName: springcloud-provider-user
 */
public class BeanUtils {

//    @Bean
//    public DiscoveryClient.DiscoveryClientOptionalArgs discoveryClientOptionalArgs(){
//        DiscoveryClient.DiscoveryClientOptionalArgs discoveryClientOptionalArgs = new DiscoveryClient.DiscoveryClientOptionalArgs();
//        List<ClientFilter> additionalFilters = new ArrayList();
//        additionalFilters.add(new HTTPBasicAuthFilter("user","password123"));
//        discoveryClientOptionalArgs.setAdditionalFilters(additionalFilters);
//        return discoveryClientOptionalArgs;
//    }
}
